<div id="container" @myInsertRemoveTrigger *ngIf="change" [hidden]="!hide" draggable="true">
  <div class="top">
    <div><i class="iconfont icon-shezhi-copy"></i><label>修改密码</label></div>
    <span class="spanOne" (click)="close()"><i class="iconfont icon-guanbi"></i></span>
  </div>

  <section class="content">
    <form>
      <div class="divs">
        <label for="password">原始密码</label>
        <input type="password" id="password" placeholder="请输入原始密码">
      </div>
      <div class="divs">
        <label for="newPassword">新密码</label>
        <input type="password" id="password" placeholder="请输入新密码" name="password"  [(ngModel)]="data.password">
        <!-- <div *ngIf="password.invalid && (password.touched || password.dirty)">
          <div class="btn btn-danger" *ngIf="password.hasError('required')">密码不可为空</div>
          <div class="btn btn-danger" *ngIf="password.hasError('pattern')">密码格式错误</div>
        </div> -->
      </div>
      <div class="divs">
        <label for="rePassword">确认密码</label>
        <input type="password" id="rePassword" placeholder="请输入确认密码" name="rePassword">
        <!-- <div *ngIf="rePassword.touched || rePassword.dirty">密码不一致</div> -->
      </div>
      <div class="divs">
        <input type="button" value="保存" id="btn-save" (click)="save()">
        <input type="button" value="取消" id="btn-cancel" (click)="cancel()">
      </div>

    </form>
  </section>
</div>
